<%@ page language="java" contentType="text/html;charset=utf-8" errorPage="/error.jsp"%>
<%@ taglib uri="jstl-core" prefix="c"%>
<%@ taglib uri="jstl-fmt" prefix="fmt"%>
<%@ taglib uri="acegi-authorize" prefix="authz"%>
<%@ taglib uri="sasis" prefix="sasis"%>
<%@ taglib uri="oscache" prefix="cache"%>
<%@ taglib uri="display" prefix="display"%>
<%@ taglib uri="sitemesh-decorator" prefix="decorator"%>
<%@ taglib uri="sitemesh-page" prefix="page"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-logic" prefix="logic"%>
<%@ taglib uri="permission" prefix="p"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>深圳航空有限责任公司-服务信息系统</title>
		<style type="text/css">

</style>
		<link href="styles/layout.css" rel="stylesheet" type="text/css" />
		<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	document.getElementById("j_username").focus();
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
		<script language="javascript">

    function submitForm(){
        loginForm.submit();
    }
    function resetForm(){
        loginForm.reset();
    }
    // -->
</script>
	</head>

	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="login-bg" onload="MM_preloadImages('images/login-2.jpg');setfocus();">
		<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="login-tablebg">
			<tr>
				<td height="290">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="357">
								&nbsp;
							</td>
							<td valign="top">
								<table width="467" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="35">
											<img src="images/login_title.gif" width="467" height="35" />
										</td>
									</tr>
									<tr>
										<td height="204" background="images/login_table_bgline.gif">
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="40%" align="center">
														<img src="images/login_logo.jpg" width="139" height="129" />
													</td>
													<td align="center">
														<form method="post" id="loginForm" action="/sasis/loginServlet">
															<table border="0" cellspacing="3" cellpadding="3">
																<tr>
																	<td height="23">
																		&nbsp;
																	</td>
																	<td align="right" class="black12">
																		用户名：
																		<br />
																	</td>
																	<td>
																		<input type="text" name="j_username" id="j_username" size="20" tabindex="1" class="home-inputBox" onkeypress="if(event.keyCode==13) document.getElementById('j_password').focus();" />
																	</td>
																	<td>
																		&nbsp;
																	</td>
																</tr>
																<tr>
																	<td height="37">
																		&nbsp;
																	</td>
																	<td align="right" class="black12">
																		密&nbsp;码：
																	</td>
																	<td>
																		<input type="password" name="j_password" id="j_password" size="20" tabindex="2" class="home-inputBox" onkeypress="if(event.keyCode==13) submitForm();" />
																	</td>
																	<td>
																		&nbsp;
																	</td>
																</tr>
																<tr>
																	<td colspan=3 class="font12" align=right>
																		<font color=red size=2> <c:if test="${loginflag != null}">
																				<div class="loginerror">
																					<fmt:message key="errors.password.mismatch" />
																				</div>
																			</c:if> </font>
																	</td>
																</tr>
																<tr>
																	<td height="37">
																		&nbsp;
																	</td>

																	<td>
																		&nbsp;
																	</td>
																	<td align="right" valign="bottom">
																		<table width="100%" border="0" cellspacing="0" cellpadding="0">
																			<tr>
																				<td width="45%" align="right" valign="bottom">
																					<a href="#" onclick="submitForm()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/login-2.jpg',1)"><img src="images/login-1.jpg" name="Image1"
																							width="62" height="23" border="0" id="Image1" /> </a>
																				</td>
																				<td width="5%" align="right" valign="bottom">
																					&nbsp;
																				</td>
																				<td width="50%" align="right" valign="bottom">
																					<a href="#" onclick="loginForm.reset()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/reset-2.jpg',1)"><img src="images/reset-1.jpg"
																							name="Image2" width="62" height="23" border="0" id="Image2" /> </a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/reset.jpg',1)"></a>
																				</td>
																			</tr>
																		</table>
																	<td>
																		&nbsp;
																	</td>
																</tr>
															</table>
														</form>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<img src="images/login_bottom.gif" width="467" height="25" />
										</td>
									</tr>
								</table>
								All rights reserved by 深圳航空有限责任公司
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
<script language="javascript">
function setfocus()
{
document.all.loginForm.j_username.focus();
}
</script>
<%
	if(null!=session){
		session.invalidate();
	}
%>
<%@ include file="/scripts/login.js"%>
